package com.cskaoyan.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author stone
 * @date 2022/12/26 16:00
 */
@RestController
public class HelloController {

    @RequestMapping("hello")
    public String handler1() {
        System.out.println("Handler1");
        return "handler1";
    }
    @RequestMapping("hello/songge")
    public String handler2() {
        System.out.println("Handler2");
        return "handler2";
    }
    @RequestMapping("goodbye")
    public String handler3() {
        System.out.println("Handler3");
        return "handler3";
    }
    @RequestMapping("goodbye/xuejia")
    public String handler4() {
        System.out.println("Handler4");
        return "handler4";
    }
}
